﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Aioms.Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("message")]
    public class Message
    {
        public Message()
        {
            this.Created = DateTime.Now;
            this.Updated = DateTime.Now;
        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// Desc:企业ID
        /// Default:
        /// Nullable:True
        /// </summary>    
        [SugarColumn(ColumnName = "eid")]
        public long Eid { get; set; }

        /// <summary>
        /// Desc:接收人ID
        /// Default:
        /// Nullable:True
        /// </summary>
        [SugarColumn(ColumnName = "epid")]
        public long Epid { get; set; }

        /// <summary>
        /// Desc:修饰名称前
        /// Default:
        /// Nullable:True
        /// </summary> 
        [SugarColumn(ColumnName = "qian")]
        public string Qian { get; set; }

        /// <summary>
        /// Desc:名称
        /// Default:
        /// Nullable:True
        /// </summary> 
        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// Desc:修饰名称后
        /// Default:
        /// Nullable:True
        /// </summary> 
        [SugarColumn(ColumnName = "hou")]
        public string Hou { get; set; }

        /// <summary>
        /// Desc:来源
        /// Default:
        /// Nullable:True
        /// </summary> 
        [SugarColumn(ColumnName = "source")]
        public string Source { get; set; }

        /// <summary>
        /// Desc:来源ID
        /// Default:
        /// Nullable:True
        /// </summary> 
        [SugarColumn(ColumnName = "refid")]
        public long RefId { get; set; }

        /// <summary>
        /// Desc:消息类型
        /// Default:
        /// Nullable:True
        /// </summary>  
        [SugarColumn(ColumnName = "type")]
        public string Type { get; set; }

        /// <summary>
        /// Desc:开始时间
        /// Default:
        /// Nullable:True
        /// </summary>   
        [SugarColumn(ColumnName = "begin_time")]
        public DateTime BeginTime { get; set; }

        /// <summary>
        /// Desc:结束时间
        /// Default:
        /// Nullable:True
        /// </summary>
        [SugarColumn(ColumnName = "end_time")]
        public DateTime EndTime { get; set; }

        /// <summary>
        /// Desc:通知状态 1.已通知 0.未通知
        /// Default:0
        /// Nullable:True
        /// </summary>    
        //[SugarColumn(ColumnName = "notice_status")]
        //public int NoticeStatus { get; set; }

        /// <summary>
        /// Desc:消息状态 1.已读 0.未读
        /// Default:0
        /// Nullable:True
        /// </summary>   
        [SugarColumn(ColumnName = "isread")]
        public int Isread { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>   
        [SugarColumn(ColumnName = "created")]
        public DateTime Created { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>  
        [SugarColumn(ColumnName = "updated")]
        public DateTime Updated { get; set; }

    }
}
